<template>
  <div class="buyerDetail">
    <div class="part-one">
      <h1><i class="iconfont icon-fanhui" @click="$router.go(-1)"></i> 采购商 <span>数据更新:2019-10-18 14:23:15</span></h1>
      <div class="detail">
        <div class="detail-left">
          <img src="../../../../public/img/newlogobig.png" alt="">
          <el-button size="mini" type="primary">建 档</el-button>
        </div>
        <div class="detail-right">
          <ul>
            <li>SIA BALT TRANS AGENCY</li>
            <li>主营行业：8999 Services, not elsewhere classified</li>
            <li>公司电话：+1-956-791-8019</li>
            <li>公司地址：14414 Industry Ave, Laredo, TX, United States of America</li>
            <li>公司简介：Services</li>
          </ul>
        </div>
      </div>
    </div>
    <div class="part-two part-common">
      <h2>联系人信息 (共4个联系人)</h2>
      <ul>
        <li>
          <h1>Alice</h1>
          <p>职位：Vice President</p>
          <p>邮箱：18525651.212@163.com</p>
        </li>
        <li>
          <h1>Alice</h1>
          <p>职位：Vice President</p>
          <p>邮箱：18525651.212@163.com</p>
        </li>
        <li>
          <h1>Alice</h1>
          <p>职位：Vice President</p>
          <p>邮箱：18525651.212@163.com</p>
        </li>
        <li>
          <h1>Alice</h1>
          <p>职位：Vice President</p>
          <p>邮箱：18525651.212@163.com</p>
        </li>
      </ul>
    </div>
    <div class="part-three part-common">
      <ul>
        <li>
          <h1>2980</h1>
          <p>交易次数(次)</p>
        </li>
        <li>
          <h1>2980</h1>
          <p>交易总额(美元)</p>
        </li>
        <li>
          <h1>2980</h1>
          <p>交易对象</p>
        </li>
      </ul>
    </div>
    <div class="part-four">
      <div class="four-one">
        <BuyerEchartBarLeft></BuyerEchartBarLeft>
      </div>
      <div class="four-one">
        <BuyerEchartBarRight></BuyerEchartBarRight>
      </div>
    </div>
    <div class="part-five">
      <BuyerEchartBar></BuyerEchartBar>
    </div>
  </div>
</template>

<script>
    import BuyerEchartBarLeft from "@/components/ocean/BuyerEchartBarLeft"
    import BuyerEchartBarRight from "@/components/ocean/BuyerEchartBarRight"
    import BuyerEchartBar from "@/components/ocean/BuyerEchartBar"
    export default {
        name: "buyerDetail",
        components: {BuyerEchartBarLeft, BuyerEchartBarRight,BuyerEchartBar}
    }
</script>

<style scoped lang="scss">
  $activeColor: #2A97F9;
  .buyerDetail {
    padding-right: 7px;

    .part-one {
      background-color: #fff;
      border-radius: 10px;
      padding: 15px 10px;

      h1 {
        font-weight: normal;
        overflow: hidden;
        color: #435B77;
        margin-bottom: 20px;
        font-size: 18px;

        i {
          font-size: 19px;
          color: $activeColor;
          cursor: pointer;
        }

        span {
          font-size: 13px;
          color: #232323;
          float: right;
        }
      }

      .detail {
        display: flex;

        .detail-left {
          width: 80px;
          padding-left: 26px;
          padding-top: 10px;

          img {
            display: block;
            width: 60px;
            height: 60px;
            border-radius: 50%;
          }

          .el-button {
            margin-top: 10px;
          }
        }

        .detail-right {
          li {
            line-height: 30px;
            color: #232323;
            font-size: 14px;
          }

          li:first-child {
            font-size: 15px;
            color: #000;
          }
        }
      }
    }

    .part-common {
      margin-top: 20px;
      background-color: #fff;
      padding: 15px 15px 15px 29px;
      border-radius: 10px;
    }

    .part-two {
      h2 {
        line-height: 40px;
        font-size: 15px;
        color: #435B77;
        margin-bottom: 8px;
      }

      ul {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;

        li {
          width: 20%;
          padding: 15px;
          /*margin-right: 20px;*/
          background: rgba(233, 243, 253, 1);
          border-radius: 10px;
          margin-bottom: 10px;
          font-size: 13px;
          color: #232323;

          h1 {
            color: $activeColor;
            margin-bottom: 15px;
          }

          p {
            margin-bottom: 10px !important;
          }
        }
      }
    }

    .part-three {
      ul {
        display: flex;
        justify-content: space-between;

        li {
          width: 30%;
          height: 134px;
          padding: 15px;
          color: #435B77;
          border-radius: 5px;

          h1 {
            font-size: 32px;
            line-height: 50px;
            margin-bottom: 10px;
          }

          p {
            font-size: 15px;
          }
        }

        li:nth-child(1) {
          background: url("../../../../public/img/detail1.png") no-repeat;
          background-size: 100%;
        }

        li:nth-child(2) {
          background: url("../../../../public/img/detail2.png") no-repeat;
          background-size: 100%;
        }

        li:nth-child(3) {
          background: url("../../../../public/img/detail3.png") no-repeat;
          background-size: 100%;
        }
      }
    }

    .part-four {
      display: flex;
      margin-top: 20px;
      justify-content: space-between;
      .four-one {
        width: 46%;
        border-radius: 10px;
        background-color: #fff;
        padding: 15px;
      }
    }
    .part-five{
      margin-top: 20px;
      background-color: #fff;
      padding: 15px 15px 15px 29px;
      border-radius: 10px;
    }
  }
</style>
